package com.findMe.service.impl;

import com.findMe.entity.Goods;
import com.findMe.mapper.GoodsMapper;
import com.findMe.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("GoodsService")
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    @Qualifier("GoodsMapper")
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> todayRecommend() {
        List<Goods> goodsList = goodsMapper.orderByGoods_Value();

        return goodsList;
    }
}